package com.fushenlan.epidemicControl.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author XUJIN
 * @DATE 2022/4/24
 * @PACKAGE_NAME com.fushenlan.po
 * @VERSION 1.0
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class EmergencyInfoDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "求助类型 1 买药  2  生活用品  3 求助类型 ", name = "type")
    private String type;   //求助类型

    @ApiModelProperty(value = "求助内容 ", name = "type")
    private String content;  //求助内容

    @ApiModelProperty(value = "附件 ", name = "attachment")
    private String attachment;  //附件

    @ApiModelProperty(value = "状态 ", name = "state")
    private String state;//状态

    @ApiModelProperty(value = "结果 ", name = "result")
    private String result;//处理结果


    private Date createTime;

    @ApiModelProperty(value = "联系方式 ", name = "phoneNumber")
    private String phoneNumber;

    @ApiModelProperty(value = "紧急度 ", name = "level")
    private String level;  //紧急度

    @ApiModelProperty(value = "求助人姓名 ", name = "userName")
    private String userName;  //

    @ApiModelProperty(value = "求助人id ", name = "userId")
    private String userId;

    @ApiModelProperty(value = "所属居委会表id ", name = "neighborId")
    private Integer neighborId;

    /**
     * 批量分配，多个逗号隔开
     */
    private String ids;

    //处理人
    private String dealId;


    /**
     * 时间查询，特定字段
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime;


}
